<?php
class brand_home_model extends CI_Model{
   public function list_brand()
    {
       
        $sql = "SELECT *
                FROM tbl_brand";
        $query = $this->db->query($sql);
        return $query->result_array();
    }
    public function get_info($col, $get_info)
    {
       
        $sql = "SELECT *
                FROM tbl_brand
                WHERE $col = $get_info";
        //echo $sql;
        $query = $this->db->query($sql);
        return $query->result_array();
    }
    
    
}
